import { requestClient } from '#/api/request';

/**
 * 获取供应商列表
 */
export async function getSuppliersListApi() {
  return requestClient.get<any>('/base/publishers');
}

/**
 * 获取销售渠道列表
 */
export async function getSalesChannelApi() {
  return requestClient.get<any>('/base/channels');
}

/**
 * 获取供应商销售汇总
 */
export async function getSupplierSaleSummeryApi(data: any) {
  return requestClient.post<any>('/reports/publishersale', data);
}

/**
 * 获取供应商销售明细
 */
export async function getSupplierSaleSummeryDetailApi(data: any) {
  return requestClient.post<any>('/reports/publishersaledetail', data);
}

/**
 * 获取渠道销售汇总
 */
export async function getChannelSaleSummeryApi(data: any) {
  return requestClient.post<any>('/reports/chansale', data);
}

/**
 * 获取渠道销售明细
 */
export async function getChannelSaleDetailApi(data: any) {
  return requestClient.post<any>('/reports/chansaledetail', data);
}

/**
 * 获取供应商库存列表
 */
export async function getSupplierStockListApi(data: any) {
  return requestClient.post<any>('/reports/pubstock', data);
}

/**
 * 获取仓库库存列表
 */
export async function getStoreStockListApi(data: any) {
  return requestClient.post<any>('/reports/chanstock', data);
}

/**
 * 获取供应商库存明细
 */
export async function getSupplierStockDetailApi(data: any) {
  return requestClient.post<any>('/reports/pubstockdetail', data);
}

/**
 * 获取仓库库存明细
 */
export async function getStoreStockDetailApi(data: any) {
  return requestClient.post<any>('/reports/chanstockdetail', data);
}
